﻿using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Data;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.ShareData
{
    /// <summary>
    /// 岗位信息
    /// </summary>
    public class PosInfo : Entity<Guid>, IMultiTenant, ISoftDelete, IHasExtraProperties
    {
        /// <summary>
        /// 岗位编码
        /// </summary>
        public string PosCodg { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PosName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public virtual ExtraPropertyDictionary ExtraProperties { get; protected set; }

        public PosInfo()
        { 
        
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="posCodg"></param>
        /// <param name="posName"></param>
        public PosInfo(string posCodg, string posName)
        {
            PosCodg = posCodg;
            PosName = posName;
            ExtraProperties = new ExtraPropertyDictionary();
            this.SetDefaultsForExtraProperties();
        }
    }
}
